<tpl var layoutBody={ />
<div data-identity="sys:role" data-table="sys_role">
	<div class="layui-breadcrumb">
		<a href="/manage/index.jspx">首页</a>
		<a href="/manage/sys/role/index.jspx">角色管理</a>
		<a href="javascript:;">
			<cite>添加</cite>
		</a>
	</div>
	<hr>
	<fieldset class="layui-elem-field">
		<legend>添加 角色管理</legend>
		<div class="layui-field-box">
			<form class="layui-form" action="save.json?oper=create" lay-filter="mSysRoleForm">
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="name">
					<label class="layui-form-label">角色名称：</label>
					<div class="layui-input-block">
						<input type="text" name="name" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="identity">
					<label class="layui-form-label">角色标识：</label>
					<div class="layui-input-block">
						<input type="text" name="identity" placeholder="请输入角色标识" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="identity">
					<label class="layui-form-label">备注信息：</label>
					<div class="layui-input-block">
						<textarea type="text" name="remark" placeholder="请输入备注信息" class="layui-textarea"></textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="mSysRoleForm">立即提交</button>
					</div>
				</div>
			</form>
		</div>
	</fieldset>
</div>
<tpl }; />

<tpl var layoutScript={ />
<script>
	layui.use(['element', 'form'], function () {
		// 绑定表单提交事件
		layui.form.on('submit(mSysRoleForm)', function (data) {
			$.postLoading('save.json?oper=create', data.field, function (res) {
				layer.msg(res.message, {
					icon: 1,
					time: 1500
				}, function () {
					history.back();
				});
			});

			return false;
		});
	});
</script>
<tpl }; />
<tpl include( "../../tpl/layout-scroll.html",{identity: "sys:role",layoutBody:layoutBody,layoutScript:layoutScript}){}/>